﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin_ProductFieldClass.aspx.cs" Inherits="V5_EShop.Admin.ProductExpand.Admin_ProductFieldClass" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>无标题页</title>
    <%=V5.Load.LoadAdminHeader(this) %>
</head>
<body>
    <table border="0" cellpadding="0" cellspacing="0" class="tablelist">
        <tr>
            <td class="header">
                商品扩展属性类型
            </td>
        </tr>
        <tr>
            <td>
                <a href="Admin_ProductFieldClass.aspx">管理首页</a> | <a href="Admin_ProductFieldClass.aspx?Action=edit">
                    添加</a>
            </td>
        </tr>
    </table>
    <form id="form1" runat="server">
    <asp:MultiView ID="MultiViewList" runat="server">
        <asp:View ID="View1" runat="server">
            <asp:GridView ID="gvList" runat="server" OnRowCommand="gvList_RowCommand" CssClass="tablelist rowlist overlist"
                AutoGenerateColumns="False" GridLines="None">
                <HeaderStyle CssClass="headertext" />
                <Columns>
                    <asp:BoundField DataField="ID" HeaderText="ID">
                        <HeaderStyle Width="30px" />
                    </asp:BoundField>
                    <asp:BoundField DataField="FieldClassName" HeaderText="类型名称" />
                    <asp:TemplateField HeaderText="默认">
                        <ItemTemplate>
                            <%# Eval("IsSelected").ToString()=="1"?"是":"否" %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作">
                        <ItemTemplate>
                            <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%# Bind("ID") %>'
                                CommandName="go">修改</asp:LinkButton>
                            <asp:LinkButton ID="LinkButton2" runat="server" CommandArgument='<%# Bind("ID") %>'
                                CommandName="del" OnClientClick="return confirm('你确定要删除吗?')">删除</asp:LinkButton>
                            <asp:LinkButton ID="LinkButton3" runat="server" CommandArgument='<%# Bind("ID") %>'
                                CommandName="gosub">管理</asp:LinkButton>
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Center" Width="200px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </asp:View>
        <asp:View ID="View2" runat="server">
            <table cellpadding="0" cellspacing="0" class="tablelist">
                <tr>
                    <td class="header" colspan="2">
                        <asp:Label ID="lblTitle" runat="server" Text="添加分类"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td style="width: 15%;">
                        分类名称
                    </td>
                    <td>
                        <asp:TextBox ID="txtProductFieldName" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="width: 15%;">
                        是否默认
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlIsSelected" runat="server">
                            <asp:ListItem Value="0" Text="不默认"></asp:ListItem>
                            <asp:ListItem Value="1" Text="默认"></asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="2">
                        <asp:HiddenField ID="hfID" runat="server" Value="0" />
                        <asp:Button ID="btnSave" runat="server" Text="保存修改" OnClick="btnSave_Click" />
                    </td>
                </tr>
            </table>
        </asp:View>
    </asp:MultiView>
    </form>
</body>
</html>
